import request from '../../util/axios'

// 分页查询档号格式
export const getReferenceDic = (data) => request({
  url: '/yuyi-config-boot/api/config/archiveNoFmt/paging',
  method: 'post',
  data
})

// 新增档号格式
export const addReferenceDic = (data) => request({
  url: '/yuyi-config-boot/api/config/archiveNoFmt',
  method: 'post',
  data
})

// 修改档号格式
export const editReferenceDic = (data) => request({
  url: '/yuyi-config-boot/api/config/archiveNoFmt',
  method: 'put',
  data
})

// 删除档号格式
export const delReferenceDic = (data) => request({
  url: '/yuyi-config-boot/api/config/archiveNoFmt',
  method: 'delete',
  data
})

// 查看关联全宗
export const getRelationFondsNo = (data) => request({
  url: '/yuyi-config-boot/api/config/archiveNoFmt/fondsNo',
  method: 'post',
  data
})
// 更新关联全宗
export const updateRelationFondsNo = (data) => request({
  url: '/yuyi-config-boot/api/config/archiveNoFmt/fondsNo',
  method: 'put',
  data
})
